const packages = {
  authorize:(options)=>{
    return new Promise((resolve,reject)=>{
      options.success = resolve;
      options.fail = reject;
      wx.authorize(options);
    });
  }
}
module.exports = packages;